@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["", 
						"是否户主", 
						"县", 
						"乡", 
						"村", 
						"组", 
						"户号", 
						"户照片", 
						"人编号", 
						"姓名", 
						"证件号", 
						"家庭人口", 
						"与户主关系", 
						"民族", 
						"文化程度", 
						"在校生情况", 
						"健康状态", 
						"劳动技能", 
						"务工状况", 
						"务工时间（月）", 
						"参加大病医疗", 
						"脱贫属性", 
						"脱贫年度", 
						"致贫原因", 
						"是否危房户", 
						"是否解决安全饮用水", 
						"人均纯收入", 
						"联系电话", 
						"首次识别时间", 
						"贫困人员识别时间", 
						"一户一码"];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"is_host", index:"is_host", width:100},
						{name:"xian", index:"xian", width:100},
						{name:"country", index:"country", width:100},
						{name:"village", index:"village", width:100},
						{name:"group", index:"group", width:100},
						{name:"family", index:"family", width:100},
						{name:"family_photo", index:"family_photo", width:100},
						{name:"user_num", index:"user_num", width:100},
						{name:"name", index:"name", width:100},
						{name:"idcard", index:"idcard", width:100},
						{name:"family_mans", index:"family_mans", width:100},
						{name:"ralation", index:"ralation", width:100},
						{name:"nation", index:"nation", width:100},
						{name:"education", index:"education", width:100},
						{name:"edu_detail", index:"edu_detail", width:100},
						{name:"health", index:"health", width:100},
						{name:"worker", index:"worker", width:100},
						{name:"job_detail", index:"job_detail", width:100},
						{name:"job_month", index:"job_month", width:100},
						{name:"join_dabinyiliao", index:"join_dabinyiliao", width:100},
						{name:"tuopin_type", index:"tuopin_type", width:100},
						{name:"tuopin_year", index:"tuopin_year", width:100},
						{name:"poor_reason", index:"poor_reason", width:100},
						{name:"is_dangerHourse", index:"is_dangerHourse", width:100},
						{name:"is_safeWater", index:"is_safeWater", width:100},
						{name:"per_income", index:"per_income", width:100},
						{name:"tel", index:"tel", width:100},
						{name:"regist_year", index:"regist_year", width:100},
						{name:"renyuan_regist_year", index:"renyuan_regist_year", width:100},
						{name:"family_code", index:"family_code", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"", index:"id", type:"text"},
			@		{name:"是否户主", index:"is_host", type:"text"},
			@		{name:"县", index:"xian", type:"text"},
			@		{name:"乡", index:"country", type:"text"},
			@		{name:"村", index:"village", type:"text"},
			@		{name:"组", index:"group", type:"text"},
			@		{name:"户号", index:"family", type:"text"},
			@		{name:"户照片", index:"family_photo", type:"text"},
			@		{name:"人编号", index:"user_num", type:"text"},
			@		{name:"姓名", index:"name", type:"text"},
			@		{name:"证件号", index:"idcard", type:"text"},
			@		{name:"家庭人口", index:"family_mans", type:"text"},
			@		{name:"与户主关系", index:"ralation", type:"text"},
			@		{name:"民族", index:"nation", type:"text"},
			@		{name:"文化程度", index:"education", type:"text"},
			@		{name:"在校生情况", index:"edu_detail", type:"text"},
			@		{name:"健康状态", index:"health", type:"text"},
			@		{name:"劳动技能", index:"worker", type:"text"},
			@		{name:"务工状况", index:"job_detail", type:"text"},
			@		{name:"务工时间（月）", index:"job_month", type:"text"},
			@		{name:"参加大病医疗", index:"join_dabinyiliao", type:"text"},
			@		{name:"脱贫属性", index:"tuopin_type", type:"text"},
			@		{name:"脱贫年度", index:"tuopin_year", type:"text"},
			@		{name:"致贫原因", index:"poor_reason", type:"text"},
			@		{name:"是否危房户", index:"is_dangerHourse", type:"text"},
			@		{name:"是否解决安全饮用水", index:"is_safeWater", type:"text"},
			@		{name:"人均纯收入", index:"per_income", type:"text"},
			@		{name:"联系电话", index:"tel", type:"text"},
			@		{name:"首次识别时间", index:"regist_year", type:"text"},
			@		{name:"贫困人员识别时间", index:"renyuan_regist_year", type:"text"},
			@		{name:"一户一码", index:"family_code", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	